package org.appchat.service.protobuf.integration;

import com.google.protobuf.Message;
import org.appchat.service.ChatRoom;
import org.appchat.service.protobuf.Test;

/**
 * Created by Ryan of app-chat.org
 * on: 7/14/12 at 5:47 PM
 */
public class Produce {
    
    ChatRoom chatRoom;
    
    @org.junit.Test
    public void testCanSendMessage(){
        
        Message protobufMessage = Test.SearchRequest.newBuilder().setTest("protowin").build();
        
        chatRoom = ChatRoom.builder().build();
        chatRoom.startChat();
        chatRoom.getPublisher().publish(protobufMessage);
        
    }
    
}
